<?php
// +----------------------------------------------------------------------
// | 海豚PHP框架 [ DolphinPHP ]
// +----------------------------------------------------------------------
// | 版权所有 2016~2019 广东卓锐软件有限公司 [ http://www.zrthink.com ]
// +----------------------------------------------------------------------
// | 官方网站: http://dolphinphp.com
// +----------------------------------------------------------------------

namespace app\api\validate;


/**
 * 添加病例验证
 * @package app\case\validate
 */
class CaseValidate extends BaseValidate
{

    public $rule = [

        'name' => 'require',
        'sex' => 'require',
        'age' => 'require',
//        'doctor_name' => 'require',
//        'inquiry_at' => 'require',
        'case_imgs' => 'require',
//        'inspect_imgs' => 'require',
        'illness_info' => 'require',
    ];

    protected $message = [

        'name.require' => '请输入姓名',
        'sex.require' => '请选择性别',
        'age.require' => '请输入年龄',
//        'doctor_name.require' => '请输入问诊医生',
//        'inquiry_at.require' => '请选择问诊时间',
        'case_imgs.require' => '请上传病例图片',
//        'inspect_imgs.require' => '请上传检测报告',
        'illness_info.require' => '请输入特殊病症描述',
    ];

    protected $scene = [

        //'caseAdd' => [ 'name','sex','age','case_imgs','inspect_imgs','illness_info'],//添加病历
        'caseAdd' => [ 'name','sex','age','case_imgs','illness_info'],//添加病历
    ];




}
